#ifndef CCALLANSWERER_H
#define CCALLANSWERER_H

#include <Etel3rdParty.h>

class MAnswerObserver
{
public:
    virtual void CallAnsweredL( TInt aError ) = 0;
};

class CCallAnswerer: public CActive
{
public:
    CCallAnswerer(MAnswerObserver&, CTelephony*);
    ~CCallAnswerer();

    void Answer();
    /*void Terminate();
    void Reject();

    enum Action {
        Unknown,
        Incoming,
        Hangup,
        Rejected
    };*/

private:
    void RunL();
    void DoCancel();

private:
    //Action action;
    MAnswerObserver&          iObserver;
    CTelephony*             iTelephony;
    CTelephony::TCallId             iCallId;
};

#endif // CCALLANSWERER_H
